[DEPRECATED] Use form field endpoints instead. Update a specific custom field by id
curl --request PUT \
--url https://api.rootly.com/v1/custom_fields/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "custom_fields",
"attributes": {
"label": "<string>",
"slug": "<string>",
"description": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"default": "<string>",
"position": 123
}
}
}'
{
"data": {
"id": "128",
"type": "custom_fields",
"attributes": {
"slug": "test-update-custom-field",
"description": "Consequuntur nihil assumenda vel.",
"enabled": true,
"position": 1,
"updated_at": "2025-08-21T17:47:23.392-07:00",
"created_at": "2025-08-21T17:47:20.942-07:00",
"kind": "text",
"label": "Test update custom field",
"shown": [
"incident_form"
],
"required": []
},
"relationships": {
"options": {
"data": [
{
"id": "4",
"type": "custom_field_options"
},
{
"id": "5",
"type": "custom_field_options"
}
]
}
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
custom_field updated
The response is of type object
.
curl --request PUT \
--url https://api.rootly.com/v1/custom_fields/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "custom_fields",
"attributes": {
"label": "<string>",
"slug": "<string>",
"description": "<string>",
"shown": [
"incident_form"
],
"required": [
"incident_form"
],
"default": "<string>",
"position": 123
}
}
}'
{
"data": {
"id": "128",
"type": "custom_fields",
"attributes": {
"slug": "test-update-custom-field",
"description": "Consequuntur nihil assumenda vel.",
"enabled": true,
"position": 1,
"updated_at": "2025-08-21T17:47:23.392-07:00",
"created_at": "2025-08-21T17:47:20.942-07:00",
"kind": "text",
"label": "Test update custom field",
"shown": [
"incident_form"
],
"required": []
},
"relationships": {
"options": {
"data": [
{
"id": "4",
"type": "custom_field_options"
},
{
"id": "5",
"type": "custom_field_options"
}
]
}
}
}
}